package packing;

import java.io.Serializable;

public abstract class BoxShape implements Serializable{
	protected int width;
	protected int length;
	protected int height;
	protected int priceBox;
	protected boolean xR,yR,zR;
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public BoxShape(int width, int length, int height,boolean xR,boolean yR,boolean zR,int pricebox) {
		super();
		this.width = width;
		this.length = length;
		this.height = height;
		this.xR = xR;
		this.yR = yR;
		this.zR = zR;
		this.priceBox = pricebox;
	}
	public BoxShape(int width, int length, int height) {
		super();
		this.width = width;
		this.length = length;
		this.height = height;

	}
	public BoxShape() {

	}
	public void xRotate (){
		int temp = this.height;
		this.height = this.length;
		this.length = temp;
		
	}
	public void yRotate(){
		int temp = this.height;
		this.height = this.width;
		this.width= temp;
	}
	public void zRotate(){
		int temp = this.length;
		this.length = this.width;
		this.width = temp;
	}
	public int getVolume(){
		return width*length*height;
	}
	
	public int  getYZArea(){
		return this.length*this.height;		
	}
	
	public int  getXZArea(){
		return this.width*this.height;		
	}
	public int  getXYArea(){
		return this.width*this.length;		
	}
	public int getPriceBox() {
		return priceBox;
	}
	public void setPriceBox(int priceBox) {
		this.priceBox = priceBox;
	}
	public boolean isxR() {
		return xR;
	}
	public void setxR(boolean xR) {
		this.xR = xR;
	}
	public boolean isyR() {
		return yR;
	}
	public void setyR(boolean yR) {
		this.yR = yR;
	}
	public boolean iszR() {
		return zR;
	}
	public void setzR(boolean zR) {
		this.zR = zR;
	}
	
}
